package com.cy.springcloudalibabagraphiql.entity;


import com.cy.springcloudalibabagraphiql.enums.UserTypeEnum;
import lombok.*;
import javax.persistence.Id;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@ToString
@Builder
@AllArgsConstructor
@Entity
@Table(name="users")
public class User implements Serializable {
    private static final long serialVersionUID = -87348501478896281L;
    @Id
    @GeneratedValue
    private Long id;
    @Column(name="nickname")
    private String nickname;
    @Column(name="mail")
    private String mail;
    @Column(name="password")
    private String password;
    @Column(name="description")
    private String description;
    private UserTypeEnum userTypeEnum;
    private Date createTime;
    private Date updateTime;
    private Date issueTime;

    public User(){}

}
